﻿using System;
using System.Collections;
using System.Collections.Generic;

namespace NanoERP.Model
{
    /// <summary>
    /// 类用途
    /// </summary>
    [Serializable]
    public sealed class OrderPayinfo
    {

        #region Private Members
        private Decimal _PAY_MONEY;
        private long _ID;
        private long _ORDER_ID;
        private long _ACCOUNT_ID;
        private String _PAY_TYPE;

        private bool _isChanged;
        #endregion
        #region DefaultConstructor
        public OrderPayinfo()
        {
            _PAY_MONEY = 0;
            _ID = 0;
            _ORDER_ID = 0;
            _ACCOUNT_ID = 0;
            _PAY_TYPE = null;

        }
        #endregion
        #region FullConstructor
        public OrderPayinfo(Decimal _PAY_MONEY, long _ID, long _ORDER_ID, long _ACCOUNT_ID, String _PAY_TYPE)
        {
            PAY_MONEY = _PAY_MONEY;
            ID = _ID;
            ORDER_ID = _ORDER_ID;
            ACCOUNT_ID = _ACCOUNT_ID;
            PAY_TYPE = _PAY_TYPE;

        }
        #endregion
        #region PublicProperties
        ///
        ///PAY_MONEY
        ///
        public Decimal PAY_MONEY
        {
            get { return _PAY_MONEY; }
            set { _isChanged |= (_PAY_MONEY == value); _PAY_MONEY = value; }
        }
        ///
        ///ID
        ///
        public long ID
        {
            get { return _ID; }
            set { _isChanged |= (_ID == value); _ID = value; }
        }
        ///
        ///ORDER_ID
        ///
        public long ORDER_ID
        {
            get { return _ORDER_ID; }
            set { _isChanged |= (_ORDER_ID == value); _ORDER_ID = value; }
        }
        ///
        ///ACCOUNT_ID
        ///
        public long ACCOUNT_ID
        {
            get { return _ACCOUNT_ID; }
            set { _isChanged |= (_ACCOUNT_ID == value); _ACCOUNT_ID = value; }
        }
        ///
        ///PAY_TYPE
        ///
        public String PAY_TYPE
        {
            get { return _PAY_TYPE; }
            set { _isChanged |= (_PAY_TYPE == value); _PAY_TYPE = value; }
        }

        #endregion

    }
}
